<?php

class MatchController extends Controller
{

    public function matchList()
    {

        //从模型中取得数据

        // $match1 =new MatchModel();
        $match1 = Factory::M('match');
      
        $match = $match1->getMatches();

        // var_dump($res);

        //从视图中取得模板
        // require './app/home/view/match_v.html';
         
         $this->assign('match',$match);
         $this->display('index');


    }




}
